﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="planView.aspx.cs" Inherits="WEB.plan.planView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    查看计划
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <table width="100%">
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <table>
                    <tr align="center" style="margin-left: '100px';">
                        <td width="200px">
                            &nbsp;
                        </td>
                        <td>
                            时间范围：<asp:TextBox ID="tbTimestart" runat="server" class="Wdate"></asp:TextBox>
                            至<asp:TextBox ID="tbTimestop" runat="server" class="Wdate"></asp:TextBox>
                            <asp:DropDownList ID="ddlasc" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="ddlasc_SelectedIndexChanged">
                                <asp:ListItem Value="desc">降序</asp:ListItem>
                                <asp:ListItem Value="asc">升序</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="200px">
                            &nbsp;
                        </td>
                        <td align="center">
                            <asp:DropDownList ID="ddlQuery" runat="server" Style="text-align: right" Width="101px">
                                <asp:ListItem Value="CustomerName">客户名</asp:ListItem>
                                <asp:ListItem Value="goodsName">货物名称</asp:ListItem>
                                <asp:ListItem Value="Remark">备注</asp:ListItem>
                                <asp:ListItem Value="planID">单号</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox ID="tbQuery" runat="server" Width="280px"></asp:TextBox>
                            <asp:Button ID="btnQuery" runat="server" Text="  查 询" OnClick="btnQuery_Click" CssClass="Submit_Query" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="gvPlan" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" CssClass="distance"
                    ForeColor="Black" GridLines="Vertical" AllowPaging="True" DataKeyNames="planID"
                    OnPageIndexChanging="gvPlan_PageIndexChanging" OnRowCommand="gvPlan_RowCommand"
                    PageSize="20" Width="1300px">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="planID" HeaderText="单号">
                            <HeaderStyle Width="50px" />
                        </asp:BoundField>
                        <asp:ButtonField ButtonType="Button" CommandName="Look" Text="查看">
                            <ControlStyle CssClass="Submit_gv" />
                            <HeaderStyle Width="50px" />
                        </asp:ButtonField>
                        <asp:ButtonField ButtonType="Button" CommandName="next" Text="下推">
                            <ControlStyle CssClass="Submit_gv" />
                            <HeaderStyle Width="50px" />
                        </asp:ButtonField>
                        <asp:ButtonField ButtonType="Button" CommandName="Edit" Text="编辑">
                            <ControlStyle CssClass="Submit_gv" />
                            <HeaderStyle Width="50px" />
                        </asp:ButtonField>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CausesValidation="false" OnClientClick="return confirm('是否确认删除？')"
                                    CommandArgument='<%# Eval("planID") %>' CssClass="Submit_gv" OnClick="Del_Click"
                                    Text="删除" />
                            </ItemTemplate>
                            <ControlStyle CssClass="Submit_gv" />
                            <HeaderStyle Width="50px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="goodsType" HeaderText="货物类型">
                            <HeaderStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="cid" HeaderText="客户名">
                            <HeaderStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="typeID" HeaderText="业务类型">
                            <HeaderStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="inOut" HeaderText="进出口类型">
                            <HeaderStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="goodsName" HeaderText="货名">
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="NO" HeaderText="数量">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="remark" HeaderText="备注">
                            <HeaderStyle Width="200px" />
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
            </td>
        </tr>
    </table>
</asp:Content>
